﻿using System.Collections.Generic;

namespace Ewk.MachineLearning.Persistance.Domain
{
    /// <summary>
    /// Represents a conversation.
    /// </summary>
    public class Conversation : Entity
    {
        private ICollection<Message> _messages;

        /// <summary>
        /// The <see cref="Message"/> instances that are this <see cref="Conversation"/>.
        /// </summary>
        public virtual ICollection<Message> Messages
        {
            get { return _messages ?? (_messages = new List<Message>()); }
            set { _messages = value; }
        }
    }
}